﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_personnelmatters.Departments
{
    /// <summary>
    /// 离职表-张笑宇
    /// </summary>
    public class TMS_Departure : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 部门id
        /// </summary>
        [Required(ErrorMessage = ("部门不能为空"))]
        [StringLength(150)]
        public string Department_Id { get; set; }
        /// <summary>
        /// 职位id
        /// </summary>
        [Required(ErrorMessage = ("职位不能为空"))]
        [StringLength(150)]
        public string Position_Id { get; set; }
        /// <summary>
        /// 员工id
        /// </summary>
        [Required(ErrorMessage = ("员工不能为空"))]
        [StringLength(150)]
        public string Employees_Id { get; set; }
        /// <summary>
        /// 上级负责人
        /// </summary>
        [Required(ErrorMessage = ("上级负责人不能为空"))]
        [StringLength(150)]
        public string SuperiorResponsiblePerson { get; set; }
        /// <summary>
        /// 入职日期
        /// </summary>
        [Required(ErrorMessage = ("入职日期不能为空"))]
        public DateTime Departure_EntryDate { get; set; }
        /// <summary>
        /// 离职日期
        /// </summary>
        [Required(ErrorMessage = ("离职日期不能为空"))]
        public DateTime Departure_Date { get; set; }
        /// <summary>
        /// 离职原因
        /// </summary>
        [Required(ErrorMessage = ("离职原因不能为空"))]
        [StringLength(200)]
        public string Departure_Why { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        [StringLength(150)]
        public string Departure_Approver { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public int Departure_State { get; set; } = 1;
        /// <summary>
        /// 删除
        /// </summary>
        public bool Departure_Delete { get; set; }=true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Departure_DateTime { get; set; }= DateTime.Now;
    }
}
